#! /bin/bash

# Usage
if [[ $# -ne 1 ]]; then
 echo "Usage: concatenate_js <directory>"
 exit
fi;

find $1 -name "*.js" | sort -n | xargs cat > $1.js

